from django.http import JsonResponse


def Success(message="成功！", data=''):
    return JsonResponse({"message": message, "data": data, "status": 0}, safe=False)


def Failure(message="失败！", data=''):
    return JsonResponse({"message": message, "data": data, "status": 1}, safe=False)
